package com.robot.member.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;


/**
 * CashWithdrawal实体类
 *
 * @author lin
 */
@Entity
@Table(name = "cash_withdrawal")
public class CashWithdrawal implements Serializable {
    /**
     * id
     */
    @Id
    private String id;
    /**
     * 会员id
     */
    private String memberId;
    /**
     * 推广获得码豆
     */
    private BigDecimal beanSpread;
    /**
     * 消费提成码豆
     */
    private BigDecimal beanRoyalty;
    /**
     * 会员积分
     */
    private BigDecimal memberPoints;
    /**
     * 提现到哪里 10-微信,20-支付宝,30-银联,40-其他
     */
    private String payment;
    /**
     * 状态 0-提现中 1-提现成功 2-提现失败
     */
    private String status;
    /**
     * 备注
     */
    private String remark;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;
    /**
     * 最后更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;
    /**
     * 删除时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deletedAt;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public BigDecimal getBeanSpread() {
        return beanSpread;
    }

    public void setBeanSpread(BigDecimal beanSpread) {
        this.beanSpread = beanSpread;
    }

    public BigDecimal getBeanRoyalty() {
        return beanRoyalty;
    }

    public void setBeanRoyalty(BigDecimal beanRoyalty) {
        this.beanRoyalty = beanRoyalty;
    }

    public BigDecimal getMemberPoints() {
        return memberPoints;
    }

    public void setMemberPoints(BigDecimal memberPoints) {
        this.memberPoints = memberPoints;
    }

    public String getPayment() {
        return payment;
    }

    public void setPayment(String payment) {
        this.payment = payment;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }

    public LocalDateTime getDeletedAt() {
        return deletedAt;
    }

    public void setDeletedAt(LocalDateTime deletedAt) {
        this.deletedAt = deletedAt;
    }

    @Override
    public String toString() {
        return "CashWithdrawal{" +
                "id='" + id + '\'' +
                ", memberId='" + memberId + '\'' +
                ", beanSpread=" + beanSpread +
                ", beanRoyalty=" + beanRoyalty +
                ", memberPoints=" + memberPoints +
                ", payment='" + payment + '\'' +
                ", status='" + status + '\'' +
                ", remark='" + remark + '\'' +
                ", createdAt=" + createdAt +
                ", updatedAt=" + updatedAt +
                ", deletedAt=" + deletedAt +
                '}';
    }
}
